package org.hbbTlias2025;

import com.example.EnableHeaderConfig;
import com.example.HeaderConfig;
import com.example.MyImportSelector;
import com.example.TokenParser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

@ServletComponentScan

//// 自动配置外部包bean方式1
//@ComponentScan(basePackages = {"com.example", "org.hbbTlias2025"})
////@Import({org.example.TokenParser.class})
////一旦加入了ComponentScan注解，原本的自动扫描本包就失效了，需要手动指明本包

////自动配置外部包方案2
////1.导入一个普通的类
//@Import({TokenParser.class})
////2.导入一个配置类
//@Import(HeaderConfig.class)
////3.导入一个ImportSelector实现类
//@Import(MyImportSelector.class)
////4.直接使用第三方提供的注解
@EnableHeaderConfig

@SpringBootApplication
public class HbBproject010303Application {

    public static void main(String[] args) {
        SpringApplication.run(HbBproject010303Application.class, args);
    }

//    @Bean
//    public AliyunOSSOperator aliyunOSSOperator(AliyunOSSProperties aliyunProperties) {
//        return new AliyunOSSOperator(aliyunProperties);
//    }


}
